package com.kzw.oa.system.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kzw.core.service.hibernate.DefaultEntityManager;
import com.kzw.oa.system.model.AppFunction;

@Service
@Transactional
public class AppFunctionService extends DefaultEntityManager<AppFunction, Long> {

	@Transactional(readOnly = true)
	public AppFunction getByKey(String key) {
		String hql = "from AppFunction af where af.funKey=?";
		return findUniqueByHQL(hql, key);
	}
}
